package com.mapper;

import com.javabean.Account;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface AccountMapper {
    @Select("select * from account")
    List<Account> selectAll();
    @Update("update account set money=money+#{arg1} where id=#{arg0}")
    int updateAddMoney(int id,double money);
    @Update("update account set money=money-#{arg1} where id=#{arg0}")
    int updateSubMoney(int id,double money);
}
